package com.taoxi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.taoxi.common.annotation.Excel;
import com.taoxi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 定制单管理对象 customization
 * 
 * @author ruoyi
 * @date 2024-10-09
 */
public class Customization extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 定制记录ID */
    private Long customId;

    /** 订单号 */
    @Excel(name = "订单号")
    private String orderNum;

    /** 实付金额 */
    @Excel(name = "实付金额")
    private Long payment;

    /** 订单状态 */
    @Excel(name = "订单状态")
    private String status;

    /** 买家ID */
    @Excel(name = "买家ID")
    private Long buyerId;

    /** 加工厂ID */
    @Excel(name = "加工厂ID")
    private Long factoryId;

    /** 买家类型（实体店0 批发商1） */
    @Excel(name = "买家类型", readConverterExp = "实=体店0,批=发商1")
    private String buyerType;

    /** 支付时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "支付时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date payTime;

    public void setCustomId(Long customId) 
    {
        this.customId = customId;
    }

    public Long getCustomId() 
    {
        return customId;
    }
    public void setOrderNum(String orderNum) 
    {
        this.orderNum = orderNum;
    }

    public String getOrderNum() 
    {
        return orderNum;
    }
    public void setPayment(Long payment) 
    {
        this.payment = payment;
    }

    public Long getPayment() 
    {
        return payment;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setBuyerId(Long buyerId) 
    {
        this.buyerId = buyerId;
    }

    public Long getBuyerId() 
    {
        return buyerId;
    }
    public void setFactoryId(Long factoryId) 
    {
        this.factoryId = factoryId;
    }

    public Long getFactoryId() 
    {
        return factoryId;
    }
    public void setBuyerType(String buyerType) 
    {
        this.buyerType = buyerType;
    }

    public String getBuyerType() 
    {
        return buyerType;
    }
    public void setPayTime(Date payTime) 
    {
        this.payTime = payTime;
    }

    public Date getPayTime() 
    {
        return payTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("customId", getCustomId())
            .append("orderNum", getOrderNum())
            .append("payment", getPayment())
            .append("status", getStatus())
            .append("buyerId", getBuyerId())
            .append("factoryId", getFactoryId())
            .append("buyerType", getBuyerType())
            .append("payTime", getPayTime())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
